package com.vivien.example.springbootdemo.service;


import com.vivien.example.springbootdemo.mapper.EmployeeMapper;
import com.vivien.example.springbootdemo.pojo.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeService {
    @Autowired
    private EmployeeMapper mapper;

    public int addEmployee(Employee employee){
        //逻辑判断
        return mapper.insert(employee);
    }
}
